package cn.ml.duoXianCheng.threadDemo;

public class MyRunnableDemo2 implements Runnable{
    @Override
    public void run() {
        try {
            Thread.sleep(3000);
            System.out.println("线程t休眠，处于阻塞状态！");
        } catch (InterruptedException e) {
            e.printStackTrace();
            System.out.println("线程t被中断!");
        }
    }

    public static void main(String[] args) {
        Thread thread = new Thread(new MyRunnableDemo2(),"t");
        System.out.println("线程t处于新建状态！");
        thread.start();
        System.out.println("线程t处于就绪状态！");
    }


}
